package com.learn.hibernatevalidator.chapter10;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * @author: liyf
 * @create: 2025-01-21 22:43
 **/
@Data
public class Library {

    @NotNull
    private String name;

    private List<@NotNull @Valid Book> books;
}
